package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("department")
public class Department {
    @TableId(value = "depid", type = IdType.AUTO)
    private Integer depId;
    
    @com.baomidou.mybatisplus.annotation.TableField("depname")
    private String depName;
    
    @com.baomidou.mybatisplus.annotation.TableField("depinfo")
    private String depInfo;
    
    @com.baomidou.mybatisplus.annotation.TableField("deplevel")
    private String depLevel;
    
    @com.baomidou.mybatisplus.annotation.TableField("depphone")
    private String depPhone;
    
    @com.baomidou.mybatisplus.annotation.TableField("depcreatetime")
    private LocalDateTime depCreateTime;

    public Department(String depName, String depInfo, String depLevel, String depPhone) {
        this.depName = depName;
        this.depInfo = depInfo;
        this.depLevel = depLevel;
        this.depPhone = depPhone;
    }
}
